package com.zh.test.valide;

import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author zhanghui
 * @Description //TODO 验证@valid注解的测试bean
 * @Date 11:21 2021/4/13
 * @Param
 * @return
 */
public class validBean {
    @NotNull
    public String name;
    @Min(11)
    public int age;
    @Future
    public Date now;

    @Override
    public String toString() {
        return "validBean{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", now=" + now +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getNow() {
        return now;
    }

    public void setNow(Date now) {
        this.now = now;
    }
}
